3.97 \(\int (c+d x)^m \cos (a+b x) \cot (a+b x) \, dx\)

Optimal. Leaf size=144 \[ \text {Int}\left (\csc (a+b x) (c+d x)^m,x\right )+\frac {e^{i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (-\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,-\frac {i b (c+d x)}{d}\right )}{2 b}+\frac {e^{-i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (m+1,\frac {i b (c+d x)}{d}\right )}{2 b} \]

[Out]

1/2*exp(I*(a-b*c/d))*(d*x+c)^m*GAMMA(1+m,-I*b*(d*x+c)/d)/b/((-I*b*(d*x+c)/d)^m)+1/2*(d*x+c)^m*GAMMA(1+m,I*b*(d
*x+c)/d)/b/exp(I*(a-b*c/d))/((I*b*(d*x+c)/d)^m)+Unintegrable((d*x+c)^m*csc(b*x+a),x)

________________________________________________________________________________________

Rubi [A]  time = 0.13, antiderivative size = 0, normalized size of antiderivative = 0.00, number of steps used = 0, number of rules used = 0, integrand size = 0, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.000, Rules used = {} \[ \int (c+d x)^m \cos (a+b x) \cot (a+b x) \, dx \]

Verification is Not applicable to the result.

[In]

Int[(c + d*x)^m*Cos[a + b*x]*Cot[a + b*x],x]

[Out]

(E^(I*(a - (b*c)/d))*(c + d*x)^m*Gamma[1 + m, ((-I)*b*(c + d*x))/d])/(2*b*(((-I)*b*(c + d*x))/d)^m) + ((c + d*
x)^m*Gamma[1 + m, (I*b*(c + d*x))/d])/(2*b*E^(I*(a - (b*c)/d))*((I*b*(c + d*x))/d)^m) + Defer[Int][(c + d*x)^m
*Csc[a + b*x], x]

Rubi steps

\begin {align*} \int (c+d x)^m \cos (a+b x) \cot (a+b x) \, dx &=\int (c+d x)^m \csc (a+b x) \, dx-\int (c+d x)^m \sin (a+b x) \, dx\\ &=-\left (\frac {1}{2} i \int e^{-i (a+b x)} (c+d x)^m \, dx\right )+\frac {1}{2} i \int e^{i (a+b x)} (c+d x)^m \, dx+\int (c+d x)^m \csc (a+b x) \, dx\\ &=\frac {e^{i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (-\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,-\frac {i b (c+d x)}{d}\right )}{2 b}+\frac {e^{-i \left (a-\frac {b c}{d}\right )} (c+d x)^m \left (\frac {i b (c+d x)}{d}\right )^{-m} \Gamma \left (1+m,\frac {i b (c+d x)}{d}\right )}{2 b}+\int (c+d x)^m \csc (a+b x) \, dx\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]  time = 6.38, size = 0, normalized size = 0.00 \[ \int (c+d x)^m \cos (a+b x) \cot (a+b x) \, dx \]

Verification is Not applicable to the result.

[In]

Integrate[(c + d*x)^m*Cos[a + b*x]*Cot[a + b*x],x]

[Out]

Integrate[(c + d*x)^m*Cos[a + b*x]*Cot[a + b*x], x]

________________________________________________________________________________________

fricas [A]  time = 0.53, size = 0, normalized size = 0.00 \[ {\rm integral}\left ({\left (d x + c\right )}^{m} \cos \left (b x + a\right ) \cot \left (b x + a\right ), x\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*cos(b*x+a)*cot(b*x+a),x, algorithm="fricas")

[Out]

integral((d*x + c)^m*cos(b*x + a)*cot(b*x + a), x)

________________________________________________________________________________________

giac [A]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (d x + c\right )}^{m} \cos \left (b x + a\right ) \cot \left (b x + a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*cos(b*x+a)*cot(b*x+a),x, algorithm="giac")

[Out]

integrate((d*x + c)^m*cos(b*x + a)*cot(b*x + a), x)

________________________________________________________________________________________

maple [A]  time = 0.24, size = 0, normalized size = 0.00 \[ \int \left (d x +c \right )^{m} \cos \left (b x +a \right ) \cot \left (b x +a \right )\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((d*x+c)^m*cos(b*x+a)*cot(b*x+a),x)

[Out]

int((d*x+c)^m*cos(b*x+a)*cot(b*x+a),x)

________________________________________________________________________________________

maxima [A]  time = 0.00, size = 0, normalized size = 0.00 \[ \int {\left (d x + c\right )}^{m} \cos \left (b x + a\right ) \cot \left (b x + a\right )\,{d x} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)^m*cos(b*x+a)*cot(b*x+a),x, algorithm="maxima")

[Out]

integrate((d*x + c)^m*cos(b*x + a)*cot(b*x + a), x)

________________________________________________________________________________________

mupad [A]  time = 0.00, size = -1, normalized size = -0.01 \[ \int \cos \left (a+b\,x\right )\,\mathrm {cot}\left (a+b\,x\right )\,{\left (c+d\,x\right )}^m \,d x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(a + b*x)*cot(a + b*x)*(c + d*x)^m,x)

[Out]

int(cos(a + b*x)*cot(a + b*x)*(c + d*x)^m, x)

________________________________________________________________________________________

sympy [A]  time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c + d x\right )^{m} \cos {\left (a + b x \right )} \cot {\left (a + b x \right )}\, dx \]

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((d*x+c)**m*cos(b*x+a)*cot(b*x+a),x)

[Out]

Integral((c + d*x)**m*cos(a + b*x)*cot(a + b*x), x)

________________________________________________________________________________________